package org.xserver.component.core.websocket;

import java.util.Map;
import java.util.concurrent.atomic.AtomicLong;

/**
 * 
 * @author Idol
 *
 */
public class WSMessage {

    private static AtomicLong _id = new AtomicLong(0);
    private Map<String , String> header;
    private String topic ;
    private String contentType;
    private String content;
    private String price;
    private String time;
    
    
    private String token;

    private Long id;
    


    public Map<String, String> getHeader() {
        return header;
    }

    public void setHeader(Map<String, String> header) {
        this.header = header;
    }

    public String getTopic() {
        return topic;
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }

    public String getContentType() {
        return contentType;
    }

    public void setContentType(String contentType) {
        this.contentType = contentType;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }



	public void newId(){
        id = _id.incrementAndGet();
    }


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

	public String getPrice() {
		return price;
	}

	public void setPrice(String price) {
		this.price = price;
	}

	public String getTime() {
		return time;
	}

	public void setTime(String time) {
		this.time = time;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}
    
}
